import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import MenberContainer from './components/tabbar/MenberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import Newslist from './components/news/Newslist.vue'
import Newsinfo from './components/news/newsinfo.vue'


// 1.3 创建路由对象
var router = new VueRouter({
  routes:[
    {path:'/',redirect:'/home'},
    { path: '/home', component: HomeContainer },
    { path: '/member', component: MenberContainer },
    { path: '/shopcar', component: ShopcarContainer },
    { path: '/search', component: SearchContainer },
    { path: '/home/newslist', component: Newslist },
    { path: '/home/newsinfo/:id', component: Newsinfo  },

  ],
  linkActiveClass:' mui-active'
})
export default router